how to return twpo things from c function